import axios from 'axios';

export function getGoodsEvaluationPage(params: any) {
  return axios.get('/mall/goodsevaluation/page', { params });
}

export function addGoodsEvaluation(data: any) {
  return axios.post('/mall/goodsevaluation', data);
}

export function updateGoodsEvaluation(data: any) {
  return axios.put('/mall/goodsevaluation', data);
}

/**
 *  注意：这里是反单引号`
 */
export function deleteGoodsEvaluation(id: string) {
  return axios.delete(`/mall/goodsevaluation/${id}`);
}
